package com.annchain.og_browser.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor

@ApiModel("区块页面")
public class OgbBlockVO {
    @ApiModelProperty("区块哈希")
    private String hash;
    @ApiModelProperty("交易类型")
    private String type;
    @ApiModelProperty("高度")
    private int height;
    @ApiModelProperty("交易总数")
    private Integer transactionCount;

    @ApiModelProperty("出块人")
    private AddressVo miner;

    @ApiModelProperty("出块时间")
    private String outputTime;
    @ApiModelProperty("出块者交易Nonce")
    private Long nonce;
    @ApiModelProperty("委员会")
    private Integer committee;
    @ApiModelProperty("交易平均并发度")
    private BigDecimal transactionAvgCon;
    @ApiModelProperty("联合签名")
    private String unionSign;
    @ApiModelProperty("联合签名公钥")
    private String unionSignPublic;
    @ApiModelProperty("前一个区块哈希")
    private String prevHash;
    @ApiModelProperty("后一个区块哈希")
    private String nextHash;
    @ApiModelProperty("StateRoot")
    private String stateRoot;
    @ApiModelProperty("父节点列表")
    private List<String> parentHash;
}
